package com.lagou.edu.config;

import cn.hutool.crypto.symmetric.SymmetricAlgorithm;
import cn.hutool.crypto.symmetric.SymmetricCrypto;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BlowfishConfig {

    @Bean
    public SymmetricCrypto blowfish() {
        return new SymmetricCrypto(SymmetricAlgorithm.Blowfish, "blow_fish".getBytes());
    }

}
